package com.tedu.webDemo.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RegisterController {
	//localhost:8080/reg/a/1
	@RequestMapping("/reg/{username}/{pwd}")
	public String register(
		@PathVariable	String username,
		@PathVariable String pwd
		) {
		return username+","+pwd;
	}

}
